home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 June: System Software / Dev.CD Jun 97 SSW.toast / What's New? / Sample Code / Toolbox / FinderDragPro / Technote.h < prev   
Encoding:
Text File  |  1997-04-23  |  1.7 KB  |  43 lines  |  [TEXT/CWIE]

  1.     //
  2.     //    LEGAL NOTICE
  3.     //    ============
  4.     //
  5.     //     You may incorporate this sample code into your applications
  6.     //     without restriction. This sample code has been provided "AS
  7.     //     IS" and the responsibility for its operation is 100% yours.
  8.     //     You are not permitted to redistribute the source as "Apple
  9.     //     sample code" after having made changes. If you're going to
  10.     //     re-distribute the source, we require that you make it clear
  11.     //     in the source that the code was descended from Apple sample
  12.     //     code, but that you've made changes.
  13.     //
  14.  
  15. #pragma once
  16.  
  17. #ifndef __DRAG__
  18. #    include <Drag.h>
  19. #endif
  20.  
  21. enum
  22. {
  23.     kPromisedFlavor                = 'fssP',
  24.     kPromisedFlavorFindFile        = 'rWm1'
  25. };
  26.  
  27. pascal OSErr GetDirID                            (const FSSpec *, long *dirID);
  28. pascal OSErr CreatePromisedFileOrFolder            (const PromiseHFSFlavor *, const FSSpec *, ScriptCode);
  29. pascal OSErr MakeHFSFlavor                        (short vRefNum, long dirID, ConstStr255Param path, HFSFlavor *);
  30.  
  31. pascal OSErr GetDropDirectory                    (DragReference, FSSpecPtr);
  32. pascal OSErr ShouldCopyToDropLoc                (DragReference, FlavorType, Boolean *);
  33. pascal OSErr SetPromisedHFSFlavorData            (DragReference, ItemReference,
  34.                                                     const PromiseHFSFlavor *, const FSSpec *);
  35. pascal OSErr AddDragItemFlavorTypePromiseHFS    (DragReference, ItemReference,
  36.                                                     OSType fileType, OSType fileCreator, UInt16 fdFlags, FlavorType);
  37. pascal OSErr GetHFSFlavorFromDragReference        (DragReference, ItemReference,
  38.                                                     HFSFlavor *);
  39. pascal OSErr ReceivePromisedFile                (DragReference, ItemReference,
  40.                                                     HFSFlavor *, const FSSpec *folder);
  41.  
  42. pascal OSErr BogusFinderEventHandler            (const AppleEvent *theAppleEvent, AppleEvent *reply, long);
  43. pascal OSErr InstallBogusFinderEventHandler        (void);